﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OrderDetail.aspx.cs" Inherits="OrderDetail" Title="Chi tiết đơn hàng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
     <div id="toolbar_box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">
                        <div id="toolbar" class="toolbar">
                            <table class="toolbar">
                                <tr>
                                    <td id="toolbar_delete" class="button">
                                        <%--<a href="#" class="toolbar">
                                            <span class="icon-32-delete"></span>
                                        Xóa</a>--%>
                                        <asp:LinkButton runat="server" ID="lbtSave" onclick="lbtSave_Click">
                                            <span class="icon-32-save"></span>
                                            Lưu
                                        </asp:LinkButton>
                                    </td>
                                    <%--<td id="toolbar_update" class="button"><a href="#" class="toolbar"><span class="icon-32-edit"></span>Sửa</a></td>--%>
                                    <td id="toolbar_add" class="button"><a href="OrderManager.aspx" class="toolbar"><span class="icon-32-cancel"></span>Bỏ qua</a></td>
                                    <td id="toolbar_help" class="button"><a href="#" class="toolbar"><span class="icon-32-help"></span>Trợ giúp</a></td>
                                </tr>
                            </table>
                        </div>
                        <div class="header addupdate">
                            Chi tiết đơn hàng
                        </div>
                        <div class="clr"></div>
                    </div>
                    
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
    </div><!--End toolbar_box--------------------------------------------------->

    <div id="element-box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">                        
                        <div class="divAddUpProduct" style="width:100%">
                            <fieldset class="adminlist">
                                <legend>Chi tiết</legend>
                                <table class="admintable" width="50%" style="float:left;">
                                    <tbody>                                        
                                        <tr>
                                            <td class="key order-detail">Khách hàng :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltCustomerName"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="key order-detail">Tin nhắn :</td>
                                            <td style="text-align:justify; line-height:20px;">
                                                <asp:Literal runat="server" ID="ltMessage"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="key order-detail">Thanh toán :</td>
                                            <td>
                                                <asp:RadioButtonList ID="rbCheckOut" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                                    
                                                </asp:RadioButtonList>
                                                
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <td class="key order-detail">Trạng thái :</td>
                                            <td>
                                                <asp:RadioButtonList runat="server" ID="rdlRecordStatus" RepeatDirection="Horizontal">
                                                </asp:RadioButtonList>
                                            </td>
                                        </tr>                                                                                                                                                                                                                                                                                                                              
                                        
                                    </tbody>
                                </table>
                                
                                <table class="admintable order-detail" width="50%" style="float:left;">
                                    <tbody>                                        
                                        <tr>
                                            <td class="key order-detail">Địa chỉ :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltAddress"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="key order-detail">Nơi nhận hàng :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltAddressDelivery"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="key order-detail">Email :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltEmail"></asp:Literal>
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <td class="key order-detail">Điện thoại :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltMobile"></asp:Literal>
                                            </td>
                                        </tr>                                                                                                                                                                                                                                                                                                                              
                                        <tr>
                                            <td class="key order-detail">Ngày tạo :</td>
                                            <td>
                                                <asp:Literal runat="server" ID="ltCreateDate"></asp:Literal>
                                            </td>
                                        </tr>  
                                    </tbody>
                                </table>                                                                                                            
                                <div class="clr"></div>
                            </fieldset>
                            
            <table width="100%" class="adminlist">               
                <thead>
                    <tr>
                        <th class="title" width="5%">STT</th>                        
                        <th class="title" width="10%">Hình ảnh</th>
                        <th class="title" width="30%">Sản phẩm</th>
                        <th class="title" width="10%">Giá</th>   
                        <th class="title" width="10%">Số lượng</th>                                                                                                        
                        <th class="title" width="10%">Thành tiền</th>                                    
                    </tr>
                </thead>
                <tbody>
                    
                    <asp:Repeater ID="rpShoppingCart" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td align="center"><%#Container.ItemIndex + 1%></td>
                                <td>
                                    <%--<img src='<%# Eval("Image") %>' alt="pro" class="ImgProCart"/>--%>
                                    <img src='<%# get_Image_Product(Eval("IMAGE"))%>' width="30"/>
                                </td>
                                <td>                                                                        
                                    <%--<a href='<%# "ProductDetail.aspx?id=" + Eval("ID") %>'><%#Eval("Name") %></a>--%>
                                    <a href='http://clerm.net/ProductDetail.aspx?id=<%#Eval("PRODUCT_ID") %>' target="_blank"><%#Eval("Name") %></a>
                                </td>
                                <td style="text-align:right;"><%#Eval("Price", "{0:0,0 VNĐ}")%></td>
                                <td style="text-align:center;">                                                                            
                                    <%# Eval("Quantity")%>
                                </td>
                                <td style="text-align:right">
                                    <%# String.Format("{0:0,0 VNĐ}", Convert.ToDouble(Eval("Price")) * Convert.ToInt32(Eval("Quantity")))%>
                                </td>                                
                            </tr>
                        </ItemTemplate>                        
                    </asp:Repeater>
                    
                    <tr style="font-weight:bold; color:Red;">
                        <td colspan="3">
                            
                        </td>
                        <td style="text-align:right" class="totalcart">Tổng cộng</td>
                        <td style="text-align:center">
                            <asp:Literal runat="server" ID="ltTotalQuantity"></asp:Literal>
                        </td>
                        
                        <td style="text-align:right">
                            <asp:Literal runat="server" ID="ltTotalCart"></asp:Literal>
                        </td>
                    </tr>
                </tbody>
            </table>
                            
                        </div><!--End divAddUpProduct--------------------------------------------------->
                    </div>
                                        
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
    </div><!--End element-box--------------------------------------------------->

</asp:Content>

